﻿@model Wicresoft.UnifyShow.Business.BusinessSystemModel
@{
    ViewBag.Title = "业务健康度总览";
    Layout = "~/Views/Shared/_LayoutSummary.cshtml";
    List<Wicresoft.UnifyShow.Portal.SiteAndSLADetailViewModel> listSLAS = (List<Wicresoft.UnifyShow.Portal.SiteAndSLADetailViewModel>)ViewData["SLAS"];
    List<string> sitesSLA = listSLAS.OrderBy(o => o.ID).Select(o => o.Alias).Distinct().ToList();
}
<div class="main_right">
    <div class="right_title2">
        <a href="/Home/Index">首页</a> > 业务状态总览 > @Model.Alias> <span>业务健康度总览</span></div>
    <!--**************************************************************************************************************************************************-->
    <div class="index_lr">
        <ul>
            <li class="index_lr2_L">
                <div class="index_lrA_title ui-icons">
                    <h3>
                        系统描述</h3>
                </div>
                <div class="index_pt_bg">
                    <table width="100%" height="210" border="0" cellpadding="0" cellspacing="0">
                        <tbody>
                            <tr>
                                <td>
                                    供应商信息:
                                </td>
                                <td>
                                    @Model.VendorInfo
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    资产信息:
                                </td>
                                <td>
                                    @Model.FncInfo
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    运维信息:
                                </td>
                                <td>
                                    @Model.OpInfo
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </li>
            <li class="index_lr2_R">
                <div class="index_lrA_title ui-icons">
                    <h3>
                        业务可用性(7天)</h3>
                </div>
                <div class="index_pt_bg">
                    <table border="0" width="100%" height="210" cellpadding="0" cellspacing="0">
                        <tbody>
                            <tr>
                                <td class="padding_A">
                                    <img height="180" width="500" src="@Url.Action("ShowBusinessAvailablePic", "BusinessAvailable", new { businessSystemId = Model.ID })" alt="业务可用性(7天)" />
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </li>
        </ul>
    </div>
    <div class="clear">
    </div>
    <!--**************************************************************************************************************************************************-->
    <div class="index_lr">
        <ul>
            <li class="index_lr2_M">
                <div class="index_lrA_title ui-icons">
                    <h3>
                        基础信息</h3>
                </div>
                <div>
                    @*                { "devices", ViewData["DeviceCount"] },*@ @*@Html.Partial("~/Views/BasicMessagePartialView/BasicMessagePartialView.cshtml", (Wicresoft.UnifyShow.Business.SiteBranchAndDeviceTypeAlertModel)ViewData["SiteBranchAndDeviceAndAlert"])*@
                    @Html.Partial("~/Views/BasicInfoTablePartialView/BasicInfoTablePartialView.cshtml", new ViewDataDictionary() { { "alerts", ViewData["AlertCount"] }, { "SitesMe", ViewData["SitesBS"] } })
                </div>
            </li>
        </ul>
    </div>
    <div class="clear">
    </div>
    <!--**************************************************************************************************************************************************-->
    <div class="index_lr">
        <ul>
            <li class="index_lr3_L">
                <div class="index_lrA_title ui-icons">
                    <h3>
                        工单信息</h3>
                </div>
                <div class="index_pt_bg scroll">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tbody>
                            <tr>
                                <td class="padding_A" width="30%">
                                    @Html.Partial("~/Views/WorkListPartialView/WorkListPartialViewByincident.cshtml", (List<Wicresoft.UnifyShow.Business.SiteBranchAndWorkListModel>)ViewData["SiteBranchAndWorkList"], new ViewDataDictionary() {  { "SitesMe", ViewData["SitesBS"] } })
                                </td>
                                <td class="padding_A" width="30%">
                                    @Html.Partial("~/Views/WorkListPartialView/WorkListPartialViewBychange.cshtml", (List<Wicresoft.UnifyShow.Business.SiteBranchAndWorkListModel>)ViewData["SiteBranchAndWorkListBychange"], new ViewDataDictionary() { { "SitesMe", ViewData["SitesBS"] } })
                                </td>
                                <td class="padding_A" width="30%">
                                    @Html.Partial("~/Views/WorkListPartialView/WorkListPartialViewByproblem.cshtml", (List<Wicresoft.UnifyShow.Business.SiteBranchAndWorkListModel>)ViewData["SiteBranchAndWorkListByproblem"], new ViewDataDictionary() { { "SitesMe", ViewData["SitesBS"] } })
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </li>
            <li class="index_lr3_R">
                <div class="index_lrA_title ui-icons">
                    <h3>
                        SLA</h3>
                </div>
                <div class="index_pt_bg scroll">
                    @foreach (var siteItem in sitesSLA)
                    {
                        List<Wicresoft.UnifyShow.Portal.SiteAndSLADetailViewModel> listSLASite = listSLAS.Where(o => o.Alias == siteItem).OrderBy(p => p.Title).ToList();
                        <p>@siteItem</p>
                        <table border="0" width="100%" height="110" cellpadding="0" cellspacing="0">
                            <tbody>
                                <tr>
                                    <td class="padding_A">
                                        <table class="talbe_gray" width="190" height="150" border="0" cellpadding="0" cellspacing="0">
                                            <tbody>
                                                <tr>
                                                    <td class="altrow" width="50%">
                                                        SLA目标
                                                    </td>
                                                    @*<td class="altrow">类型</td>*@
                                                    <td class="altrow" width="25%">
                                                        状态
                                                    </td>
                                                    @*<td class="altrow">归属地</td>*@
                                                    <td class="altrow" width="25%">
                                                        数量
                                                    </td>
                                                </tr>
                                                @foreach (var sla in listSLASite)
                                                {
                                                    <tr>
                                                        <td>@sla.Title
                                                        </td>
                                                        @*<td>@sla.Type</td>*@
                                                        <td>@sla.Status
                                                        </td>
                                                        @*<td>@sla.Alias</td>*@
                                                        <td>@sla.Count
                                                        </td>
                                                    </tr>
                                                }
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    }
                </div>
            </li>
        </ul>
    </div>
    <div class="clear">
    </div>
</div>
@section  LeftMenu {
    <li class="VNavLeaf ui-icons">业务健康度总览</li>
    <li><a href="@Url.Action("Index", "BasicEnvironmentStatus", new { businessSystemId = Model.ID })">
        基础环境状态</a></li>
    <li><a href="@Url.Action("Index", "ITBusinessStatistics", new { businessSystemId = Model.ID })">
        IT服务统计</a></li>
    <li><a href="@Url.Action("Index", "ServiceLevelAgreement", new { businessSystemId = Model.ID })">
        服务水平统计</a></li>
}
